package com.huilian.iotbox.data.service;

import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.data.dto.CommoditySupplierDto;
import com.huilian.iotbox.data.vo.CommoditySupplierVo;

import java.util.List;

public interface CommoditySupplierCommonService {
    List<CommoditySupplierVo> initSuppliers(CommoditySupplierDto commoditySupplierDto);

    PageInfo<CommoditySupplierVo> initSuppliersPageInfo(CommoditySupplierDto commoditySupplierDto) throws Exception;

    void addSuppliers(CommoditySupplierDto commoditySupplierDto) throws Exception;

    List<CommoditySupplierVo> getSupplierByUserId(Integer userId);

    void delSupplierById(CommoditySupplierDto commoditySupplierDto) throws Exception;

    CommoditySupplierVo getSupplierById(Integer id) throws Exception;

    int updatePurchase(CommoditySupplierDto commoditySupplierDto) throws Exception;
}
